﻿using System;

namespace CoreLib
{
    public class ActionDispose : IDisposable
    {
        private readonly Action _onDispose;

        public ActionDispose( Action onDispose )
        {
            _onDispose = onDispose;
        }

        public void Dispose()
        {
            _onDispose();
        }
    }
}
